/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 活动Entity
 * @author zengbiao
 * @version 2017-04-22
 */
public class EventPrize extends DataEntity<EventPrize> {
	
	private static final long serialVersionUID = 1L;
	private Event event;		// event_id 父类
	private String rank;		// rank
	private String label;		// label
	private String name;		// name
	private String quantity;		// quantity
	private String weight;		// weight
	private String bonus;		// bonus
	private String image;		// image
	private String note;		// note
	
	public EventPrize() {
		super();
	}

	public EventPrize(String id){
		super(id);
	}

	public EventPrize(Event event){
		this.event = event;
	}

	@Length(min=0, max=64, message="event_id长度必须介于 0 和 64 之间")
	public Event getEvent() {
		return event;
	}

	public void setEventId(Event event) {
		this.event = event;
	}
	
	@Length(min=0, max=45, message="rank长度必须介于 0 和 45 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	@Length(min=0, max=45, message="label长度必须介于 0 和 45 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=0, max=45, message="name长度必须介于 0 和 45 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=11, message="quantity长度必须介于 0 和 11 之间")
	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	
	@Length(min=0, max=11, message="weight长度必须介于 0 和 11 之间")
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	public String getBonus() {
		return bonus;
	}

	public void setBonus(String bonus) {
		this.bonus = bonus;
	}
	
	@Length(min=0, max=200, message="image长度必须介于 0 和 200 之间")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}